
import frida
import sys

device = frida.get_usb_device(timeout=1)
#你要注入的包名
pid = device.spawn('com.ss.android.ugc.aweme')
print(pid)
session = device.attach(pid)
f = open('./index.js','r')
script = session.create_script(f.read())
script.load()
device.resume(pid)
sys.stdin.read()